module.exports = class extends think.Logic {
  loginAction() {
    this.allowMethods = 'post';
    this.rules = {
      username: {
        string: true,
        required: true,
        alias: '账号',
        trim: true
      },
      pwd: {
        string: true,
        required: true,
        alias: '密码'
      }
    };
  }
};
